/**
 * Created by asus on 2017/4/28.
 */
import actions from './action'
import mutations from './mutation'

let state = {
  totalCount: 0,
  currentPage: 1,
  lessons: [],
  editingLesson: {},
  pageModel: 'ADD',
  searchText: ''
}


const getters = {
  getLessons: state => state.lessons,
  getEditingLesson: state => state.editingLesson,
  getLessonPageModel: state => state.pageModel,
  getSysLessonTotalCount: state => state.totalCount,
  getSysLessonCurrentPage: state => state.currentPage,
  getLessonSearchText: state => state.searchText
}

export default {
  state,
  getters,
  actions,
  mutations
};
